﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Maniac
{
    public abstract class PriceDataDownloader
    {
        public virtual event EventHandler DownloadPricesCompleted;

        protected virtual void OnDownloadPricesCompleted(EventArgs e)
        {
            if (DownloadPricesCompleted != null)
                DownloadPricesCompleted(this, e);
        }
        private Security ivSecurity;
        public virtual Security Security
        {
            get
            {
                return ivSecurity;
            }
            set
            {
                ivSecurity = value;
            }
        }

        public virtual void DownloadPrices(DateTime fvdStartDate)
        {
            throw new System.NotImplementedException();
        }

        public void Refresh()
        {
            throw new System.NotImplementedException();
        }
    }

    public abstract class DateDataDownloader
    {
        public virtual event EventHandler DownloadDatesCompleted;

        protected virtual void OnDownloadDatesCompleted(EventArgs e)
        {
            if (DownloadDatesCompleted != null)
                DownloadDatesCompleted(this, e);
        }
        private Security ivSecurity;
        public virtual Security Security
        {
            get
            {
                return ivSecurity;
            }
            set
            {
                ivSecurity = value;
            }
        }

        public virtual void DownloadDates()
        {
            throw new System.NotImplementedException();
        }

        public virtual void Refresh()
        {
            throw new System.NotImplementedException();
        }
    }
}
